package com.zhuxulin.java.email.mail.bean;

public class SimpleEmailMessage {
	private String name = null;
	private String subject = null;
	private String msg = null;
	private String to = null;
	/** 发送延迟 秒数*/
	private int delay = 5;

	public SimpleEmailMessage(String name, String subject, String msg, String to, int delay) {
		this.name = name;
		this.subject = subject;
		this.msg = msg;
		this.to = to;
		this.delay = delay;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public int getDelay() {
		return delay;
	}

	public void setDelay(int delay) {
		this.delay = delay;
	}
	@Override
	public String toString() {
		return "EmailMsg [name=" + name + ", subject=" + subject + ", msg=" + msg + ", to=" + to + ", delay=" + delay + "]";
	}

}
